/* 
 * File:   types..y
 * Author: nell
 *
 * Created on May 30, 2012, 2:46 PM
 */

#ifndef TYPES__Y
#define	TYPES__Y

#ifdef	__cplusplus
extern "C" {
#endif

#include "constants.h"


    typedef struct LongCod {
        int longeur;
        long long int code;
    } LongCod;

    
    typedef struct LetVal {
        char* lettre;
        int prof;
    } LetVal;

    typedef struct tableau {
        LetVal* tab;
        int nombre;
    } tableau;

    //Maillon de l'arbre de Huffman.

    typedef struct str {
        char* lettre;
        int val;
        struct str* dte;
        struct str* gch;
        struct str* parent;
    } arbre;

    // Maillon de la liste chainée d'élement trié de l'arbre.

    typedef struct chaine {
        arbre* info;
        struct chaine * suiv;
    } liste;


#ifdef	__cplusplus
}
#endif

#endif	/* TYPES__Y */

